;;; init.el ---  init package conf         -*- lexical-binding: t; -*-

;;; Commentary:

;;; Code:


;; todo list
(setq org-todo-keywords
      '((sequence "TODO" "DOING" "|" "DONE" "DEPRECATED")))

;; capture
(setq org-directory "~/LvDir/codehub/gitee/CAUCHY2932/notes")
(setq org-default-notes-file "~/LvDir/codehub/gitee/CAUCHY2932/notes/org-capture.org")

;; I use C-c c to start capture mode
(global-set-key (kbd "C-c c") 'org-capture)

(setq org-capture-templates
    '(
(
    "t"
    "Tasks"  ; description
    entry (file+headline "~/LvDir/codehub/gtd.org" "Tasks")
    "* TODO %?
Description: %^{Description}
Schedule:    %^{Schedule}T
Startup:     %^{Startup}T
Deadline:    %^{Deadline}T
Participant: %^{Participant}
Priority:    %^{Priority|Low|Mid|High}
Importance:  %^{Importance|Low|Mid|High}
Urgency:     %^{Urgency|Low|Mid|High}
Income:      %^{Income|Ignored}"
    :empty-lines 1 ; insert empty-line
)
(
    "i"
    "Inspire"
    entry (file+headline "~/LvDir/codehub/gtd.org" "Inpire")
    "* TODO %?
Description: %^{Description}
Log:         %^{Log}T
Startup:     %^{Startup}T
Participant: %^{Participant}
Importance:  %^{Importance|Low|Mid|High}
Content:     %^{Content|Ignored}"
    :empty-lines 1 ; insert empty-line
)
(
    "p"
    "Project"
    entry (file+headline "~/LvDir/codehub/gtd.org" "Projects")
    "* TODO %?
Description: %^{Description}
Schedule:    %^{Schedule}T
Startup:     %^{Startup}T
Cost:        %^{Cost}
Deadline:    %^{Deadline}T
Participant: %^{Participant}
Importance:  %^{Importance|Low|Mid|High}
Income:     %^{Income|Ignored}"
    :empty-lines 1 ; insert empty-line
)
(
    "j"
    "Journal"
    entry (file+headline "~/LvDir/codehub/gtd.org" "Journal")
    "* TODO %?
Description: %^{Description}
Log:         %^{Log}T
Startup:     %^{Startup}T
Deadline:    %^{Deadline}T
Participant: %^{Participant}
Importance:  %^{Importance|Low|Mid|High}
Content:     %^{Content|Ignored}"
    :empty-lines 1 ; insert empty-line
)
(
 "d"
 "Diary"
 entry (file+datetree "~/LvDir/codehub/diary.org")
 "* %?\n%U\n" :clock-in t :clock-resume t
 )
    )
)

(provide 'init-org)

